package com.yc.pre.entity;

/**
 * 返回码
 */
public class StatusCode {
    // 系统成功、失败
    public static final int OK = 20000;//成功
    public static final int ERROR = 20001;//失败

    // 用户错误
    public static final int LOGIN_ERROR = 30001;//用户名或密码错误
    public static final int PHONE_CODE_ERROR = 30002;//请勿重复发送验证码
    public static final int CODE_ERROR = 30003; //验证码错误
    public static final int NO_USERNAME = 30004;//请输入账号
    public static final int NO_PHONE = 30005; //请输入手机号
    public static final int ACCOUNT_LOCK = 30006; //账号锁定
    public static final int ACCOUNT_EXIST = 30008; //账号已存在
    public static final int PHONE_NOT_EXIST = 30009; //手机号不存在
    public static final int PIC_CODE_ERROR = 30010; //图片验证码错误

    // 远程调用错误
    public static final int REMOTE_ERROR = 40001;//远程调用失败

    // 参数错误
    public static final int PARAM_ERROR = 50001;//参数错误

    // 文件上传异常
    public static final int FILE_UPLOAD_ERROR = 60001;//文件上传异常

    // 权限
    public static final int ACCESSERROR = 70001;//权限不足
    public static final int RE_LOGIN = 70002; //请重新登录

    //返回的数据错误
    public static final int DATA_NOT_FOUND = 80001; //数据未找到

    public static final int DEFAULT_ERROR = 90001; //未知错误

}
